<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>React learn</title>
    <script src="build/react.js"></script>
    <script src="build/react-dom.js"></script>
    <script src="build/browser.min.js"></script>
</head>
<body>
    <div id="hello"></div>
    <div id="map"></div>
    <script type="text/babel">
       var HelloMessage = React.createClass({
           getInitialState:function(){
             return {click:0}
           },
           handleClick:function(){
             this.setState({click:this.state.click+1})
           },
           render:function(){
           return <h1 onClick={this.handleClick}>Click Number: {this.state.click}</h1>;
       }});
        ReactDOM.render(
                <HelloMessage/>,
               document.getElementById("hello")
        );

    </script>
</body>
</html>